package com.lahuan;

import com.baomidou.mybatisplus.core.incrementer.IdentifierGenerator;
import com.lahuan.service.TestService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.jdbc.core.JdbcTemplate;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

import javax.sql.DataSource;

/**
 * @author linfy
 */
@Slf4j
@EnableSwagger2
@SpringBootApplication
public class BaseSpringBootApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext ctx = SpringApplication.run(BaseSpringBootApplication.class, args);
        TestService bean = ctx.getBean(TestService.class);
        System.out.println(bean);
    }

}
